import request from '@/utils/request'

// 问诊-查询患者列表信息
export const getPatientList = () => request({
  url: '/patient/mylist',
  method: 'GET'
})

// 问诊-添加患者信息
export const addPatient = (data) => request({
  url: '/patient/add',
  method: 'POST',
  data
})

// 问诊-编辑患者信息
export const editPatient = (data) => request({
  url: '/patient/update',
  method: 'PUT',
  data
})

// 问诊-删除患者信息
export const delPatient = (id) => request({
  url: `/patient/del/${id}`,
  method: 'DELETE'

})

// 问诊-查询患者详情
export const getPatientDetail = (id) => request({
  url: `/patient/info/${id}`,
  method: 'GET'
})
